include ../../../config.mak

AR=arm-linux-ar
LD=arm-linux-ld
CC=arm-linux-gcc
CFLAGS= $(OPTFLAGS) -Wall \
                 -I. -I$(SRC_PATH) -I$(SRC_PATH)/libavformat \
                 -I$(SRC_PATH)/libavcodec -I$(INCLUDE) \
                 -march=armv4 -mtune=arm9tdmi\
                 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -O3

OBJ = ratecontrol.o fmpeg4_avcodec.o

all: fmpeg4_avcodec.a

fmpeg4_avcodec.a: $(OBJ)
	$(AR) rcs fmpeg4_avcodec.a $(OBJ)
	
%.o: %.c
	$(CC) $(CFLAGS) -c -o $@ $<

Makefile.depend depend:
	arm-linux-gcc -DLINUX -MM -MG *.c > Makefile.depend
	
clean:
	rm -f *.o *.a
